//
//  BViewController.swift
//  popover
//
//  Created by 李煜 on 2022/9/15.
//

import UIKit

class BViewController: UIViewController {
  let label = UILabel(frame: .zero)
  override func viewDidLoad() {
    super.viewDidLoad()
    view.backgroundColor = .orange
    view.addSubview(label)
    label.text = "this is b vc's label."

    print(modalPresentationStyle.rawValue)
  }

  override func viewWillLayoutSubviews() {
    super.viewWillLayoutSubviews()
    label.frame = view.bounds
  }
}
